package com.itboye.pondteam.db;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

/**
 * Created by Administrator on 2017/4/27.
 */

public class StatisticalDurationHelper extends SQLiteOpenHelper {

    private static String DBNAME = "VIDEO_TIMES.db";
    public static String TABLENAME_Video = "time_table";
    String dbSql = ("create table " + TABLENAME_Video + " (id Integer primary key,uid text,time long,visit_date text)");

    public StatisticalDurationHelper(Context context) {
        super(context, DBNAME, null, 2);
    }

    @Override
    public void onCreate(SQLiteDatabase db) {
        db.execSQL(dbSql);
    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }
}
